package com.tz.dream.architect.mvp.login;

import com.tz.dream.architect.mvp.framework.MvpBasePresenter;
import com.tz.dream.architect.mvp.framework.MvpPresenter;
import com.tz.dream.architect.mvp.framework.lce.MvpLceView;
import com.tz.dream.architect.mvp.list.demo.bean.PostModel;

/**
 * 作者: Dream on 2018/3/9 21:23
 * QQ:510278658
 * E-mail:510278658@qq.com
 */

//具体中介
public class LoginPresenter extends MvpBasePresenter<MvpLceView<PostModel>> implements MvpPresenter<MvpLceView<PostModel>> {

    //持有同事引用
    //两个同事：M层、V层
    private LoginModel model;

    public LoginPresenter(){
        this.model = new LoginModel();
    }

    public void login(String username, String password){
//        this.model.login(username, password, new HttpUtils.OnHttpResultListener() {
//            @Override
//            public void onResult(String result) {
//                if (getView() != null){
//                    getView().onLoginResult(result);
//                }
//            }
//        });
    }

}
